package thread.zjitc.net.lib.syanchronized;

/**
 * @author 朱志文
 * @data 2019/11/16 0016
 */
public class SysnchroizedThread extends Thread{
    private MySysnchroizedThread mySysnchroizedThread;
    private int choice;

    public SysnchroizedThread(MySysnchroizedThread mySysnchroizedThread, int choice) {
        this.mySysnchroizedThread = mySysnchroizedThread;
        this.choice = choice;
    }

    @Override
    public void run() {
        super.run();
//        mySysnchroizedThread.chese(choice);
        mySysnchroizedThread.increae();
        mySysnchroizedThread.getcount();
    }
}
